<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US">
    <head profile="http://gmpg.org/xfn/11">
        <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
        <link href="<?php echo $this->baseUrl() . '/public/templates/games_orange/css/normalize.css'; ?>" rel="stylesheet" type="text/css"/>
        <link href="<?php echo $this->baseUrl() . '/public/templates/games_orange/css/style.css'; ?>" rel="stylesheet" type="text/css"/>
        <link href="<?php echo $this->baseUrl() . '/public/templates/games_orange/css/grid.css'; ?>" rel="stylesheet" type="text/css"/>
        <script type="text/javascript" src="<?php echo $this->baseUrl() . '/public/js/jquery-1.6.4.min.js'; ?>"></script>
        <script type="text/javascript" src="<?php echo $this->baseUrl() . '/public/js/nivo_slider/jquery.nivo.slider.js'; ?>"></script>
        <script type="text/javascript" src="<?php echo $this->baseUrl() . '/public/templates/games_orange/js/modernizr.js'; ?>"></script>
        <script type="text/javascript" src="<?php echo $this->baseUrl() . '/public/js/nhk_ajax.js'; ?>"></script>
        <?php
        echo $this->headLink();
        echo $this->headMeta();
        echo $this->headScript();
        echo $this->headTitle();
        $game_info = $this->arrParam['game_info'];
        $game_id = $game_info['id'];
        if ($game_info['sys_image']) {
            echo '<meta property=og:image content="' . UPLOADED_URL . '/' . $game_info['source_image'] . '"/>';
            echo '<link rel="image_src" href="' . UPLOADED_URL . '/' . $game_info['source_image'] . '" />';
        } else {
            echo '<meta property=og:image content="' . $game_info['source_image'] . '"/>';
            echo '<link rel="image_src" href="' . $game_info['source_image'] . '" />';
        }
        ?>
        <link rel="icon" href="<?php echo SITE_URL; ?>/favicon.ico" type="image/x-icon"/>
        <link rel="shortcut icon" href="<?php echo SITE_URL; ?>/favicon.ico" type="image/x-icon" title ="<?php echo SITE_TITLE; ?>"/>
        <script type="text/javascript">
            var expanded = 0;
            function expand(){
                if(expanded==0){
                    jQuery("div#button-expand").html("Shrink");
                    expanded = 1;
                    jQuery("#play-game-container").animate({
                        width: "930",
                        height: "550",
                        opacity: 1
                    }, 500 );
                    jQuery("#gk_right").animate({
                        marginTop: "50",
                        opacity: 1
                    }, 500 );
                    jQuery("#gk_content").animate({
                        marginTop: "50",
                        opacity: 1
                    }, 500 );                    
                }else{
                    jQuery("div#button-expand").html("Expand");
                    expanded = 0;
                    jQuery("#play-game-container").animate({
                        width: "620",
                        height: "400",
                        opacity: 1
                    }, 500 );
                    jQuery("#gk_right").animate({
                        marginTop: "-440",
                        opacity: 1
                    }, 500 );
                    jQuery("#gk_content").animate({
                        marginTop: "0",
                        opacity: 1
                    }, 500 );  
                }
            }
            jQuery(document).ready(function() {
                showLike("<?php echo $game_id; ?>");
            });
        </script>
        <!-- Add facebook plugin -->
        <script>(function(d, s, id) {
            var js, fjs = d.getElementsByTagName(s)[0];
            if (d.getElementById(id)) {return;}
            js = d.createElement(s); js.id = id;
            js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
            fjs.parentNode.insertBefore(js, fjs);
        }(document, 'script', 'facebook-jssdk'));
        </script>
    </head>
    <body class="home page page-id-23 page-template page-template-page-home-php" data-twttr-rendered="true">
        <div id="main">
            <header id="header">
                <?php echo $this->blkHeader(); ?>
            </header> 
			
			<div class="adv_body adv_728_center">
			
			    <?php echo $this->blkAdv('ga', '728x90'); ?>
			</div>
            <div class="primary_content_wrap">
                <div class="container">
                    <div class="container_12 clearfix">
                        <div class="grid_12">
                            <div class="wrapper">
                                <!--Hien thi game -->
                                <div id="play-game-container">  
                                    <?php echo $this->blkPlay(); ?>
                                </div>
                                <div style="margin: 0; padding: 0; width: 100%; height: auto;">
                                    <!-- Hien thi content Left -->
                                    <div class="grid_8 alpha" id="gk_content">
                                        <?php echo $this->layout()->content; ?>                                    
                                    </div>

                                    <!-- Hien thi cotnten Right -->
                                    <div class="grid_4 omega" id="gk_right">  
                                        <div id="my_cyclewidget-2" class="widget wg_color2" style="overflow: hidden;">  
                                            <div style="float: left; padding-right: 20px;"><?php echo $this->blkAdv('cpm', '120x600'); ?></div>
                                            <div style="float: right;"><?php echo $this->blkAdv('ga', '160x600'); ?></div>
                                        </div>  
										<div id="my_cyclewidget-2" class="widget wg_color2" style="overflow: hidden;">  
                                            <?php echo $this->blkAdv('ga', '300x250'); ?>
                                        </div>                                       
                                        <div id="my_cyclewidget-2" class="widget wg_color2">  
                                            <div class="fb-like-box" data-href="http://www.facebook.com/pages/gameangrybirds/102078819898122" data-width="300px" data-show-faces="true" data-border-color="#E0E0E0" data-stream="false" data-header="true"></div>
                                        </div>                                    
                                        <?php //echo $this->blkTags(); ?>  
                                        <?php echo $this->blkRandom(); ?>
                                    </div>
                                </div>
                            </div>
                            
                        </div>
                    </div>
                </div>
            </div>
            <footer id="footer">
                <?php echo $this->blkBottom(); ?>
            </footer> 
        </div>

    </body>
</html>